<?php
/**
 * Created by PhpStorm.
 * User: Guojunchen
 * Date: 2018/8/29
 * Time: 15:05
 */

namespace app\app\controller;

/**
 * 工种
 * Class WorkSort
 * @package app\app\controller
 */
class WorkSort extends Common
{
    /**
     * 获取工种列表
     */
    public function getList(){
        $list = model('WorkSort')->field('sort_id,sort_name')->order('sort_id desc')->select();
        renderJson('获取成功', 1, $list);
    }
}